import"../common/modulepreload-polyfill-3cfb730f.js";console.log("161-盘点open打开新窗口那些高级用法");$("#btn1").on("click",()=>{window.open("https://www.baidu.com")});$("#btn2").on("click",()=>{const o=window.open("http://www.baidu.com");console.log("百度窗口已经打开 - open");const n=setInterval(function(){o!=null&&o.closed&&(console.log("百度窗口已经关闭 - close"),clearInterval(n))},30)});$(".btn3").on("click",function(){const o=$(this).attr("data-type");window.open("https://www.baidu.com",o)});$("#btn4").on("click",()=>{window.open("https://www.baidu.com","",`
    top=100,
    left=400,
    width=500,
    height=300,
    toolbar=no,
    menubar=no,
    scrollbars=yes,
    resizable=yes,
    location=no,
    status=no
    `)});
